package independentes;

public class Fatorial implements Runnable {
	
	private int num, result;
	
	public Fatorial(int num) {
		this.num = num;
	}
	
	public int getResult() {
		return result;
	}

	@Override
	public void run() {
		result = 1;
		for (int i = num; i > 0; i--)
			result *= i;
	}
}